package com.xz.spi.filter;

/**
 * Created by fingal on 2018/1/16.
 */
public class SensitiveFilter implements Filter {
    @Override
    public void doFilter(Request request, Response response, FilterChain chain) {
        request.setData(request.getData().replace("黄", "不黄").replace("敏感", "min感"));
        chain.doFilter(request, response, chain);
    }
}
